import { request } from '@/common/utils/request'
// 获取配置列表
export function configList(data) {
	return request({
		url: '/dev/config/list',
		method: 'GET',
    data
	})
}

// 字典   .?  改了但有些页面在用没完全改
export function getDicts(data) {
	return request({
		url: '/dev/dict/tree',
		method: 'GET',
		data,
	})
}

// 角色列表
export function getRoleList() {
	return request({
		url: '/role/roleOption',
		method: 'GET',
	})
}

// 部门列表 ?
export function getDepartmentList(data) {
	return request({
		url: '/role/departmentList',
		method: 'POST',
		data,
	})
}

//产生单位列表 .
export const factoryAll = (data) => {
	return request({
		url: '/biz/produceUnit/getSelectList',
		method: 'GET',
		data,
	})
}

//产生部门列表 .
export const deptSelector = (data) => {
	return request({
		url: '/biz/produceUnit/produceDeptSelector',
		method: 'GET',
		data,
	})
}

//产生单位列表 ?
export const selectScopeIds = (data) => {
	return request({
		url: '/role/selectScopeIds',
		method: 'GET',
		data,
	})
}

// 名录类别级别
export function wasteLevelApi(data) {
	return request({
		url: '/param/config/wasteTypeList',
		method: 'GET',
		data,
	})
}

// 贮存站场
export function wasteStorageApi(data) {
	return request({
		url: '/param/config/wasteList',
		method: 'GET',
		data,
	})
}

// 经办人
export function userListApi(data) {
	return request({
		url: '/role/userList',
		method: 'GET',
		data,
	})
}

// 处置单位
export function disposalUnitApi(data) {
	return request({
		url: '/param/config/companyList',
		method: 'GET',
		data,
	})
}

//获取处置联系人
export function getLinksApi(data) {
	return request({
		url: '/getLinks',
		method: 'GET',
		data,
	})
}

// 设施列表
// export function setSwmsFacilityList(data) {
//     return request({
//         url: '/param/config/setSwmsFacilityList',
//         method: 'GET',
//         data
//     })
// }
